/*uaMrAQOEc2UH52hOmFUWDcfh8I+MkTQrtITHwvtaRNygTLbSxYz6MRQwhUcCSteI0GTOlLlEwNNS
0DvRKbM59Q==*/
/*
 * @Descripttion: 财务信息或采购信息表单编辑前事件
 * @version:
 * @Author: Chendch
 * @Date: 2020-11-27 16:19:08
 * @LastEditors: Chendch
 * @LastEditTime: 2020-12-30 15:23:02
 */
import {constProp} from "../../CONSTANCE";
export default function(props, moduleId, key, value, data) {
    const meta = props.meta.getMeta();
    let formId = moduleId;
    const respdeptVO =  meta[formId].items.find((item) => item.attrcode == 'respdept')
    if(respdeptVO) {
        respdeptVO.queryCondition = () => {
            return {
                'pk_org': props.form.getFormItemsValue(formId, "pk_org").value
            };
        };
    }
    props.meta.setMeta(meta);
    return true;
}
/*uaMrAQOEc2UH52hOmFUWDcfh8I+MkTQrtITHwvtaRNygTLbSxYz6MRQwhUcCSteI0GTOlLlEwNNS
0DvRKbM59Q==*/
